package com.ztx.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ztx.pojo.Menu;
import com.ztx.pojo.Permission;
import com.ztx.service.PermissionService;
import com.ztx.mapper.PermissionMapper;
import com.ztx.service.UserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author ztx
* @description 针对表【permission】的数据库操作Service实现
* @createDate 2023-10-27 20:25:30
*/
@Service
public class PermissionServiceImpl extends ServiceImpl<PermissionMapper, Permission>
    implements PermissionService{
    @Autowired
    PermissionMapper permissionMapper;
    @Override
    public List<String> getModuleByUserId(Long userId) {
        return permissionMapper.getModuleByUserId(userId);
    }
}




